package action;

import java.util.Map;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;
import org.apache.struts2.util.ServletContextAware;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport implements ServletRequestAware,
		ServletResponseAware, ServletContextAware, SessionAware {

protected HttpServletRequest request;
protected HttpServletResponse response;
protected Map<String, Object> session;
protected ServletContext context;

@Override
public void setSession(Map<String, Object> session) {
	// TODO Auto-generated method stub
	this.session = session;
	
}
@Override
public void setServletContext(ServletContext context) {
	// TODO Auto-generated method stub
	this.context = context;
	
}
@Override
public void setServletResponse(HttpServletResponse response) {
	// TODO Auto-generated method stub
	this.response =response;
}
@Override
public void setServletRequest(HttpServletRequest request) {
	// TODO Auto-generated method stub
	this.request= request;
}


}
